package com.wy.redbag;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private RedBagView redbag;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        redbag = findViewById(R.id.redbag);
        redbag.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                redbag.startAnimator(0, 100);
            }
        });
    }
}